<?php
declare (strict_types = 1);

namespace app\home\controller;
use thans\jwt\facade\JWTAuth;
class Index
{
    public function index()
    {
       return '您好！这是一个[home]示例应用';
    }

    /**
     * 生成token
     */
    public function token(){
        $token = JWTAuth::builder(['uid' => 1]);
        return successes('ok',$token);
    }

    /**
     * 前台页面发送
     */
    public function front(){
        return view('checkOuth');
    }

    public function test(){
        return successes('鉴权成功');

    }
}
